//
//  main.c
//  指针
//
//  Created by szcq on 2021/5/7.
//

#include <stdio.h>

int main(int argc, const char * argv[]) {
    
    int num = 10;
    int * p = &num;
    printf("num = %d \n",num);//num = 10
    printf("p = %p \n", p);//p = 0x7ffeefbfef1c
    printf("&num = %p \n", &num);//&num = 0x7ffeefbfef1c
    printf("*p = %d \n",*p);//*p = 10
    
    
    /**
     num = 10
     p = 0x7ffeefbfef1c
     &num = 0x7ffeefbfef1c
     *p = 10 
     */
    
    return 0;
}
